package com.yunti.springboot.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@TableName("device_school")
@Accessors(chain = true)
public class DeviceSchool {
    private static final long serialVersionUID = 1L;
    /**表字段 id */
    @TableId(value = "id",type = IdType.AUTO)
    Integer id;
    Integer deviceId;
    Integer schoolId;
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    Date createTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    Date updateTime;
}
